package cate.game.role.bag.equip.msg;

import cate.common.annotation.OperationSetter;
import cate.common.table.d.GDOperation;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBBag;
import cate.game.role.bag.vo.UidNumVO;

import java.util.List;

@ClientMsg(title = "装备 出售 の 请求",description = "如果成功分解的装备数量大于0，会收到一条出售装备返回的消息")
@OperationSetter(GDOperation.EQUIP_SELL)
public class EquipSellReq implements MsgInput {
    public List<UidNumVO> list;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        game.train.equip.sellEquip(cc.getRole(), list);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBBag.EQUIP_RESOLVE_REQ;
    }
}
